﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model.DevProRelation
{
    public class DevProRelationModel
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 设备类型ID
        /// </summary>
        public string DeviceTypeId { get; set; }

        /// <summary>
        /// 设备类型名称
        /// </summary>
        public string DeviceTypeName { get; set; }

        /// <summary>
        /// 厂家序列号
        /// </summary>
        public string FactorySerial { get; set; }
        /// <summary>
        /// CompanySerial
        /// </summary>
        public string CompanySerial { get; set; }
        /// <summary>
        /// 厂家型号规格
        /// </summary>
        public string FModelSize { get; set; }
        /// <summary>
        /// 公司型号规格
        /// </summary>
        public string CModelSize { get; set; }

        /// <summary>
        /// 采购负责人
        /// </summary>
        public string Purchaser { get; set; }
        /// <summary>
        /// 采购时间
        /// </summary>
        public System.DateTime PurchaseTime { get; set; }

        /// <summary>
        /// 采购质保期
        /// </summary>
        public System.DateTime PurchaseWarrantyTime { get; set; }

        /// <summary>
        /// 在项目中的质保期
        /// </summary>
        public System.DateTime WarrantyTime { get; set; }
        /// <summary>
        /// 设备厂家
        /// </summary>
        public string DeviceFactory { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string DeviceTel { get; set; }
        /// <summary>
        /// 维修厂家
        /// </summary>
        public string RepairFactory { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string RepairTel { get; set; }
        /// <summary>
        /// 状态 0未出库 1已出库 2报废
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 出库时间
        /// </summary>
        public System.DateTime? OutTime { get; set; }

        /// <summary>
        /// 报废时间
        /// </summary>
        public System.DateTime? ScrapTime { get; set; }
        /// <summary>
        /// 工程重命名
        /// </summary>
        public string ReName { get; set; }
        /// <summary>
        /// 出库类型名称
        /// </summary>
        public string CodeTypeName { get; set; }
        /// <summary>
        /// 基站名称
        /// </summary>
        public string LocaName { get; set; }
        /// <summary>
        /// 设备等级
        /// </summary>
        public int DeviceLevel { get; set; }
    }

    /// <summary>
    /// 出库类型
    /// </summary>
    public class CodeType
    {
        /// 出库类型ID
        /// </summary>
        public string CodeId { get; set; }
        /// 出库类型名称
        /// </summary>
        public string CodeTypeName { get; set; }
    }

    /// <summary>
    /// 设备关系表信息
    /// </summary>
    public class DevProRelationInfoModel
    {
        /// <summary>
        /// 设备系表ID
        /// </summary>
        public string DPRelationId { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 出库类型ID
        /// </summary>
        public string CodeId { get; set; }
        /// <summary>
        /// 出库途径编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 工程重命名
        /// </summary>
        public string ReName { get; set; }
        /// <summary>
        /// 基站编号
        /// </summary>
        public string LocaId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 在项目中的质保期
        /// </summary>
        public System.DateTime WarrantyTime { get; set; }
        /// <summary>
        /// 状态 0未出库 1已出库 2报废
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 出库或报废时间
        /// </summary>
        public System.DateTime? ChangeDateTime { get; set; }

    }


    /// <summary>
    /// 基站信息
    /// </summary>
    public class LocaInfo
    {
        /// 出库类型ID
        /// </summary>
        public string id { get; set; }
        /// 出库类型名称
        /// </summary>
        public string text { get; set; }
    }


    /// <summary>
    /// 选择主设备的类
    /// </summary>
    public class SelDevInfoModel
    {
        /// <summary>
        /// ID
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 设备质保期
        /// </summary>
        public DateTime WarrantyTime { get; set; }
    }
}
